package T2;

public class Truck extends Vehicle{
    private double payload;

    public Truck(){

    }
    public Truck(int wheels,double weight,double payload){
        super(wheels,weight);
        this.payload = payload;
        System.out.println("限重："+payload);
    }

    public double getPayload() {
        return payload;
    }

    public void setPayload(double payload) {
        this.payload = payload;
    }
}
